package com.bhs.sansonglogistics.ui.adapter;

import android.widget.ImageView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.bhs.sansonglogistics.R;
import com.bhs.sansonglogistics.utils.MyUtils;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

public class PictureShowAdapter3 extends BaseQuickAdapter<Object, BaseViewHolder> {


    public PictureShowAdapter3(@Nullable List<Object> data) {
        super(R.layout.item_picture3, data);
    }

    public PictureShowAdapter3(int layout,@Nullable List<Object> data) {
        super(layout, data);
    }
    @Override
    protected void convert(@NonNull BaseViewHolder helper, Object item) {

        Glide.with(mContext).load(MyUtils.watermark((String) item)).into((ImageView) helper.getView(R.id.iv_picture));

    }
}
